package com.hfkh.keyun.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hfkh.keyun.common.ApiResult;
import com.hfkh.keyun.entity.Course;
import com.hfkh.keyun.exception.BusinessException;
import com.hfkh.keyun.vo.CourseVO;
import java.io.IOException;
public interface CourseService extends IService<Course> {
    ApiResult addCourse(CourseVO courseVO) throws IOException, BusinessException;
    /**
     * 按课程编号分页查询
     */
    ApiResult queryPage(Integer id,Integer page,Integer size);
    /**
     * 根据专业id查询课程以及单元信息
     */
    Page<Course> selectCourseAndUnitPage(Page<Course> page,Integer majorId);

}
